<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <title>首页</title>
    <meta content="" name="description"/>
    <meta content="" name="keywords"/>
    <meta content="order by mobanxiu.cn" name="author"/>
    <meta content="webkit" name="renderer">
    <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link href="../../layui/css/layui.css" rel="stylesheet">
    <link href="../../xznstatic/css/common.css" rel="stylesheet"/>
    <link href="../../xznstatic/css/style.css" rel="stylesheet"/>
    <link href="../../xznstatic/css/animate.css" rel="stylesheet"/><!-- 动画效果 -->
    <link href="../../xznstatic/css/swiper.min.css" rel="stylesheet"/>
    <script src="../../xznstatic/js/jquery-1.11.3.min.js"></script>
    <script src="../../xznstatic/js/jquery.SuperSlide.2.1.1.js"></script>
    <link href="../../xznstatic/css/bootstrap.min.css" rel="stylesheet"/>

    <link href="../../css/theme.css" rel="stylesheet"/>
</head>
<style>
    html::after {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        content: '';
        display: block;
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
    }

    #test1 {
        overflow: hidden;
    }

    /*轮播图css*/
    #test1 .layui-carousel-ind li {
        width: 20px;
        height: 10px;
        border-width: 0;
        border-style: solid;
        border-color: rgba(0, 0, 0, .3);
        border-radius: 6px;
        background-color: #f7f7f7;
        box-shadow: 0 0 6px rgba(255, 0, 0, .8);
    }

    #test1 .layui-carousel-ind li.layui-this {
        width: 30px;
        height: 10px;
        border-width: 0;
        border-style: solid;
        border-color: rgba(0, 0, 0, .3);
        border-radius: 6px;
    }

    .layui-carousel-ind {
        top: 0;

    }

    .layui-carousel-ind ul {
        position: absolute;

        bottom: 8px !important;
        z-index: 10;
    }

    .title {
        padding: 10px 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .title span {
        padding: 0 10px;
        line-height: 1.4;
    }

    .box .list {
        display: flex;
        flex-wrap: wrap;
    }


    .box .list img {
        width: 100%;
        height: 100px;
        display: block;
        margin: 0 auto;
        object-fit: cover;
        max-width: 100%;
    }

    .box .list .name {
        padding-top: 5px;
        color: red;
        font-size: 14px;
        text-align: center;
        box-sizing: border-box;
    }


    .box .list .list-item {
        flex: 0 0 25%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /*
   .box .list .list-item-body {
        border: 1px solid rgba(0, 0, 0, 3);
        padding: 5px;
        box-sizing: border-box;
        cursor: pointer;
   }
    .box .list .list-item .list-item-body {
        border: 1px solid rgba(0, 0, 0, 3);
        padding: 10px;
        box-sizing: border-box;
        display: flex;
        cursor: pointer;
    }

    .box .list .list-item .list-item-body img {
        width: 120px;
        height: 100%;
        display: block;
        margin: 0 auto;
        object-fit: cover;
        max-width: 100%;
    }

    .box .list .list-item .list-item-body .item-info {
        flex: 1;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        padding-left: 10px;
        box-sizing: border-box;
    }

    .box .list .list-item .list-item-body .item-info .name {
        padding-top: 5px;
        color: red;
        font-size: 14px;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
    .box .list .list-item .list-item-body .item-info .time {
        padding-top: 5px;
        color: red;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
    #new-list-6 .swiper-wrapper {
        -webkit-transition-timing-function: linear;
        -moz-transition-timing-function: linear;
        -ms-transition-timing-function: linear;
        -o-transition-timing-function: linear;
        transition-timing-function: linear;
    }*/

    .list-item1 {
        flex: 0 0 100%;
    }

    .list-item2 {
        flex: 0 0 50%;
    }

    .list-item3 {
        flex: 0 0 33.3%;
    }

    .list-item4 {
        flex: 0 0 25%;
    }

    .list-item5 {
        flex: 0 0 20%;
    }

    /*限制内容长度*/
    .line1 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
    }

    .line2 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .line3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    /*轮播图css*/
    .notice-item {
        margin: 0 auto;
        margin-top: 20px;
        width: 370px;
        height: 14px;
        border-bottom: 1px solid #d9d9d9;
        position: relative;
        margin-bottom: 20px;
    }

    .notice-item span {
        position: absolute;
        bottom: -15px;
        left: 50%;
        height: 29px;
        width: 120px;
        color: #000;
        line-height: 29px;
        font-size: 24px;
        margin-left: -60px;
        background-color: #fff;
        text-align: center;
    }

    .notice-list {
        width: 370px;
        margin: 0 auto;
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-bottom: 1px dashed #d9d9d9;
        transition: all 0.5s;
        -moz-transition: all 0.5s;
        -ms-transition: all 0.5s;
    }


    .notice-list :hover {
        padding-left: 10px;
    }

    /*套装样式*/
    /*腰线*/
    /*home页面主要样式*/
    /*home页面普通数据样式*/
    .tox-pop {
        z-index: -99999;
    }

    .show-reel a img {
        width: 100%;
    }

    .show-reel:nth-child(2) {
        margin: 2em 0;
    }

    .agile-gallery {
        position: relative;
        overflow: hidden;
        text-align: center;;
    }

    .agileits-caption {
        background: rgba(0, 0, 0, 0.62);
        padding: 2em 1em 1em 1em;
        position: absolute;
        left: 0;
        bottom: -105%;
        text-align: center;
        width: 100%;
        height: 100%;
        -webkit-transition: .5s all;
        transition: .5s all;
        -moz-transition: .5s all;
    }

    .agile-gallery:hover .agileits-caption {
        bottom: 0%;
    }

    .agileits-caption h4 {
        color: #FFFFFF;
        margin: 0 0 .5em 0;
        font-size: 1.5em;
        font-weight: 600;
        font-family: 'Laila', serif;
        line-height: 8em;
        text-transform: capitalize;
    }

    .agileits-caption p {
        color: #FFFFFF;
        font-size: 1.3em;
        margin-top: 3px;
    }

    .gallery-grids {
        padding: 5em 0;
    }

    /*home页面新闻数据样式*/
</style>
<body>
<div id="app">
    <div class="banner">

        <div style="background-image: linear-gradient(200deg,var(--publicMainColor),var(--publicSubColor));">
            <div style="width: 1200px;margin: 0 auto;height: 370px;display: flex;justify-content: space-around;">
                <!-- 轮播图 -->
                <div class="banner" style="width: 64%;">
                    <div class="layui-carousel" id="test1" style="height: 370px !important;position: relative">
                        <div carousel-item class="wow slideInLeft" data-wow-duration="3s"
                             style="visibility: visible; animation-duration: 3s; animation-name: slideInLeft;">
                            <div :key="index" v-for="(item,index) in swiperList">
                                <img :src="baseUrl+item.img" style="width: 100%;height: 100%;object-fit:cover;"/>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="width: 34%;background-color: #fff;height: 370px;">
                    <div class="notice-item">民航新闻信息</div>
                    <div class="notice-app" v-for="(item,index) in newsList" v-if="index<5">
                        <div @click="jump('../news/detail.html?id='+item.id)" class="notice-list">
                            <em style="font-size: 26px;color: #000;margin: 5px 16px;">
                                {{index + 1}}
                            </em>
                            <span>{{ item.newsName }}</span>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="content">
        <div style="display: flex;justify-content: center;background-repeat: no-repeat;background-position: center center;background-size: cover;">
            <div class="box"
                 style='width:100%;background-image: linear-gradient(320deg,var(--publicMainColor),var(--publicSubColor))'>
                <div style="width: 1200px;height: auto;margin:  0 auto;padding: 10px 0">
                    <div class="wow " data-wow-delay="1s" data-wow-duration="2s">
                        <div :style='{"padding":"10px 0 10px 0","boxShadow":"10px 10px  0 rgba(127, 78, 22, 1) ","margin":"10px 0 30px 0","borderColor":"rgba(255, 69, 0, 1)","color":"#fff","borderRadius":"0px","alignItems":"center","borderWidth":"0","fontSize":"16px","borderStyle":"solid"}'
                             class="title main_backgroundColor">
                            <span>NEWS</span>
                            <span>民航新闻展示</span>
                        </div>
                    </div>
                    <div class="wow " data-wow-delay="1s" data-wow-duration="2s">
                        <div class="new-list-5" style="display: flex;flex-direction: column;align-items: center;"
                             v-if="newsList.length">
                            <div :style='{"padding":"10px","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0 0 60px 0","borderColor":"rgba(247, 247, 247, 1)","backgroundColor":"var(--publicSubColor)","borderRadius":"0","borderWidth":"6px","width":"50%","borderStyle":"dashed ","height":"200px"}' @click="jump('../news/detail.html?id='+newsList[0].id)"
                                 class="new5-one animation-box"
                                 style="display: flex;flex-wrap: wrap;align-items: center;display: flex;flex-wrap: wrap;width: 100%;"
                                 v-if="newsList.length>0">
                                <img :src="baseUrl+newsList[0].newsPhoto"
                                     :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,.3)","margin":"0","borderColor":"rgba(0, 0, 0, 0.5)","backgroundColor":"rgba(0,0,0,0)","borderRadius":"0","borderWidth":"0","width":"60%","borderStyle":"solid","height":"100%"}'
                                     alt="" style="width: 40%;height: 100%;object-fit: cover;">
                                <div :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(153, 157, 156, 0)","borderRadius":"0","borderWidth":"0","width":"40%","borderStyle":"solid","height":"100%"}'
                                     class="new5-one-info" style="width: 60%;">
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"-25px 0 25px 5px","borderColor":"var(--publicMainColor)","backgroundColor":"var(--publicMainColor)","color":"#fff","textAlign":"center","borderRadius":"50% 50% 0 0","borderWidth":"1px 0","width":"100%","lineHeight":"44px","fontSize":"16px","borderStyle":"solid"}'
                                         class="new5-one-info-title line1" style="box-sizing: border-box;">
                                        {{newsList[0].newsName}}
                                    </div>
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"10px 0","borderColor":"rgba(26, 26, 26, 1)","backgroundColor":"rgba(0,0,0,0)","color":"rgba(51, 51, 51, 1)","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"32px","fontSize":"14px","borderStyle":"solid"}'
                                         class="new5-one-info-descript line3" style="box-sizing: border-box;"
                                         v-html="myFilters(newsList[0].newsContent)"></div>
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"10px 0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"rgba(27, 27, 27, 1)","textAlign":"right","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"44px","fontSize":"12px","borderStyle":"solid"}'
                                         class="new5-one-info-time" style="box-sizing: border-box;">
                                        {{newsList[0].insertTime}}
                                    </div>
                                </div>
                            </div>
                            <div class="new5-body" style="display: flex;width: 100%;">
                                <div :style='{"padding":"0","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0 1%","borderColor":"rgba(247, 247, 247, 1)","backgroundColor":"var(--publicSubColor)","borderRadius":"0","borderWidth":"5px","width":"31.33%","borderStyle":"dashed ","height":"200px"}' @click="jump('../news/detail.html?id='+newsList[1].id)"
                                     class="new5-item animation-box"
                                     style="display: flex;flex-wrap: wrap;align-items: center;"
                                     v-if="newsList.length>1">
                                    <div :style='{"padding":"5px 10px","boxShadow":"0 0 6px rgba(0,0,0,.3)","margin":"-26px 50% 20px 10%","borderColor":"#ccc","backgroundColor":"var(--publicMainColor)","borderRadius":"50% 50% 0 0","borderWidth":"0","width":"40%","borderStyle":"solid","height":"52px"}'
                                         class="new5-item-time"
                                         style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
                                        <span :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"21px","fontSize":"18px","borderStyle":"solid"}'>{{newsList[1].insertTime.split(' ')[0]}}</span><span
                                            :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"21px","fontSize":"14px","borderStyle":"solid"}'>{{newsList[1].newsValue}}</span>
                                    </div>
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"rgba(0, 0, 0, 1)","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"44px","fontSize":"18px","borderStyle":"solid"}'
                                         class="new5-item-title line1" style="box-sizing: border-box;">
                                        {{newsList[1].newsName}}
                                    </div>
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"32px","fontSize":"14px","borderStyle":"solid"}'
                                         class="new5-item-descript line3" style="box-sizing: border-box;"
                                         v-html="myFilters(newsList[1].newsContent)"></div>
                                </div>
                                <div :style='{"padding":"0","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0 1%","borderColor":"rgba(247, 247, 247, 1)","backgroundColor":"var(--publicSubColor)","borderRadius":"0","borderWidth":"5px","width":"31.33%","borderStyle":"dashed ","height":"200px"}' @click="jump('../news/detail.html?id='+newsList[2].id)"
                                     class="new5-item animation-box"
                                     v-if="newsList.length>2">
                                    <div :style='{"padding":"5px 10px","boxShadow":"0 0 6px rgba(0,0,0,.3)","margin":"-26px 50% 20px 10%","borderColor":"#ccc","backgroundColor":"var(--publicMainColor)","borderRadius":"50% 50% 0 0","borderWidth":"0","width":"40%","borderStyle":"solid","height":"52px"}'
                                         class="new5-item-time"
                                         style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
                                        <span :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"21px","fontSize":"18px","borderStyle":"solid"}'>{{newsList[2].insertTime.split(' ')[0]}}</span><span
                                            :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"21px","fontSize":"14px","borderStyle":"solid"}'>{{newsList[2].newsValue}}</span>
                                    </div>
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"rgba(0, 0, 0, 1)","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"44px","fontSize":"18px","borderStyle":"solid"}'
                                         class="new5-item-titl line1e" style="box-sizing: border-box;">
                                        {{newsList[2].newsName}}
                                    </div>
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"32px","fontSize":"14px","borderStyle":"solid"}'
                                         class="new5-item-descript line3" style="box-sizing: border-box;"
                                         v-html="myFilters(newsList[2].newsContent)"></div>
                                </div>
                                <div :style='{"padding":"0","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0 1%","borderColor":"rgba(247, 247, 247, 1)","backgroundColor":"var(--publicSubColor)","borderRadius":"0","borderWidth":"5px","width":"31.33%","borderStyle":"dashed ","height":"200px"}' @click="jump('../news/detail.html?id='+newsList[3].id)"
                                     class="new5-item animation-box"
                                     v-if="newsList.length>3">
                                    <div :style='{"padding":"5px 10px","boxShadow":"0 0 6px rgba(0,0,0,.3)","margin":"-26px 50% 20px 10%","borderColor":"#ccc","backgroundColor":"var(--publicMainColor)","borderRadius":"50% 50% 0 0","borderWidth":"0","width":"40%","borderStyle":"solid","height":"52px"}'
                                         class="new5-item-time"
                                         style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
                                        <span :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"21px","fontSize":"18px","borderStyle":"solid"}'>{{newsList[3].insertTime.split(' ')[0]}}</span><span
                                            :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"21px","fontSize":"14px","borderStyle":"solid"}'>{{newsList[3].newsValue}}</span>
                                    </div>
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"rgba(0, 0, 0, 1)","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"44px","fontSize":"18px","borderStyle":"solid"}'
                                         class="new5-item-title line1" style="box-sizing: border-box;">
                                        {{newsList[3].newsName}}
                                    </div>
                                    <div :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"rgba(0,0,0,0)","color":"#fff","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"32px","fontSize":"14px","borderStyle":"solid"}'
                                         class="new5-item-descript line3" style="box-sizing: border-box;"
                                         v-html="myFilters(newsList[3].newsContent)"></div>
                                </div>
                            </div>
                        </div>
                        <div style="margin-top:40px;text-align: center;">
                            <button :style='{"padding":"0 15px","boxShadow":"0 0 6px rgba(255,0,0,0)","margin":"4px auto","borderColor":"#ccc","backgroundColor":"#fff","color":"rgba(160, 67, 26, 1)","borderRadius":"6px","borderWidth":"0","width":"auto","fontSize":"14px","borderStyle":"solid","height":"34px"}' @click="jump('../news/list.html')"
                                    style="display: block;cursor: pointer;"
                                    type="button">
                                查看更多
                                <i :style='{"isshow":true,"padding":"0 0 0 1px","fontSize":"14px","color":"rgba(160, 67, 26, 1)"}'
                                   class="layui-icon layui-icon-next"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div style="display: flex;justify-content: center;background-repeat: no-repeat;background-position: center center;background-size: cover;">
            <div class="box"
                 style='width:100%;background-image:linear-gradient(50deg,var(--publicSubColor),var(--publicMainColor))'>
                <div style="width: 1200px;height:auto;margin:  0 auto;padding: 10px 0">
                    <div class="wow " data-wow-delay="1s" data-wow-duration="2s">
                        <div :style='{"padding":"10px 0 10px 0","boxShadow":"10px 10px  0 rgba(127, 78, 22, 1) ","margin":"10px 0 30px 0","borderColor":"rgba(255, 69, 0, 1)","color":"#fff","borderRadius":"0px","alignItems":"center","borderWidth":"0","fontSize":"16px","borderStyle":"solid"}'
                             class="title main_backgroundColor">
                            <span>DATA SHOW</span>
                            <span>航班信息展示</span>
                        </div>
                    </div>
                    <div class="wow " data-wow-delay="1s" data-wow-duration="2s">
                        <div class="show-reel row" style="display: flex;justify-content: space-around;">
                            <div class="list-item4 list-item3B" style="padding: 6px" v-bind:key="index"
                                 v-for="(item,index) in jipiaoList">
                                <div class="agile-gallery">
                                    <a @click="jumpCheck('../jipiao/detail.html?id='+item.id , item.aaaaaaaaaa == null?'':item.aaaaaaaaaa , item.shangxiaTypes == null?'':item.shangxiaTypes)"
                                       class="lsb-preview" data-lsb-group="header">
                                        <img :src="item.jipiaoPhoto?baseUrl+item.jipiaoPhoto.split(',')[0]:''"
                                             style="height: 350px;width:100%;"/>
                                        <div class="agileits-caption">
                                            <h4>{{item.jipiaoName}}</h4>
                                            <p v-if="item.jipiaoNewMoney != null">￥{{item.jipiaoNewMoney}}</p>
                                        </div>
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div style="text-align: center;margin-top: 40px;">
                            <button :style='{"padding":"0 15px","boxShadow":"0 0 6px rgba(255,0,0,0)","margin":"4px auto","borderColor":"#ccc","backgroundColor":"#fff","color":"rgba(160, 67, 26, 1)","borderRadius":"6px","borderWidth":"0","width":"auto","fontSize":"14px","borderStyle":"solid","height":"34px"}' @click="jump('../jipiao/list.html')"
                                    style="display: block;cursor: pointer;"
                                    type="button">
                                查看更多
                                <i :style='{"isshow":true,"padding":"0 0 0 1px","fontSize":"14px","color":"rgba(160, 67, 26, 1)"}'
                                   class="layui-icon layui-icon-next"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script charset="utf-8" src="../../xznstatic/js/bootstrap.min.js" type="text/javascript"></script>
<script charset="utf-8" src="../../xznstatic/js/echarts.min.js" type="text/javascript"></script>
<script src="../../layui/layui.js"></script>
<script src="../../js/vue.js"></script>
<!-- 引入element组件库 -->
<script src="../../xznstatic/js/element.min.js"></script>
<!-- 引入element样式 -->
<link href="../../xznstatic/css/element.min.css" rel="stylesheet">
<script src="../../xznstatic/js/swiper.min.js"></script>
<script src="../../js/config.js"></script>
<script src="../../modules/config.js"></script>
<script src="../../js/utils.js"></script>
<script src="../../xznstatic/js/wow.min.js"></script>
<script type="text/javascript">
    // 动画效果
    new WOW().init();

    Vue.prototype.myFilters = function (msg) {
        if (msg == null || msg == "") {
            return "";
        } else if (msg.length > 20) {
            msg.replace(/\n/g, "<br>");
            return msg.substring(0, 20) + "......";
        } else {
            return msg.replace(/\n/g, "<br>");
        }
    };
    var vue = new Vue({
        el: '#app',
        data: {
            swiperList: [],
            baseUrl: "",
            // dianyingRecommend: [],
            newsList: [],
            newsTypesList: [],
            jipiaoList: [],
            jipiaoTypesList: [],
            //类型查询条件
            newsTypes: "",
            jipiaoTypes: "",
        },
        filters: {
            newsDesc: function (val) {
                if (val) {
                    val = val.replace(/<[^<>]+>/g, '').replace(/undefined/g, '');
                    if (val.length > 60) {
                        val = val.substring(0, 60);
                    }

                    return val;
                }
                return '';
            }
        },
        methods: {
            jump(url) {
                jump(url)
            }
            , jumpCheck(url, check1, check2) {
                if (check1 == "2" || check1 == 2) {//级联表的逻辑删除字段[1:未删除 2:已删除]
                    layui.layer.msg("已经被删除", {
                        time: 2000,
                        icon: 2
                    });
                    return false;
                }
                if (check2 == "2" || check2 == 2) {//是否下架[1:上架 2:下架]
                    layui.layer.msg("已经下架", {
                        time: 2000,
                        icon: 2
                    });
                    return false;
                }
                this.jump(url);
            }
        }
    });

    layui.use(['layer', 'form', 'element', 'carousel', 'http', 'jquery'], function () {
        var layer = layui.layer;
        var element = layui.element;
        var form = layui.form;
        var carousel = layui.carousel;
        var http = layui.http;
        var jquery = layui.jquery;
        vue.baseUrl = http.baseurl

        // 获取轮播图 数据
        http.request('config/list', 'get', {
            page: 1,
            limit: 5
        }, function (res) {
            if (res.data.list.length > 0) {
                let swiperList = [];
                res.data.list.forEach(element => {
                    if (element.value != null
                    ) {
                        swiperList.push({
                            img: element.value
                        });
                    }
                })
                ;

                vue.swiperList = swiperList;

                vue.$nextTick(() => {
                    carousel.render({
                        elem: '#test1',
                        width: '100%',
                        height: '100%',
                        arrow: 'hover',
                        anim: 'default',
                        autoplay: 'true',
                        interval: '3000',
                        indicator: 'inside'
                    });

                })

                // vue.$nextTick(()=>{
                //   window.xznSlide();
                // });
            }
        });

        newsSelect();
        //类型动态搜索
        $(document).on("click", ".newsTypes-search", function (e) {
            vue.newsTypes = $(this).attr('index');
            newsSelect();
        });
        newsTypesSelect();//类型查询
        jipiaoSelect();
        //类型动态搜索
        $(document).on("click", ".jipiaoTypes-search", function (e) {
            vue.jipiaoTypes = $(this).attr('index');
            jipiaoSelect();
        });
        jipiaoTypesSelect();//类型查询

        function newsTypesSelect() {//类型查询
            http.request("dictionary/page?page=1&limit=100&sort=&order=&dicCode=news_types", 'get', {}, function (res) {
                if (res.code == 0) {
                    vue.newsTypesList = res.data.list;
                }
            });
        }

        function newsSelect() {//数据查询
            http.request('news/list', 'get', {
                page: 1,
                limit: 8,
                newsTypes: vue.newsTypes,//类型
                order: "desc",//asc desc
            }, function (res) {
                vue.newsList = res.data.list;
            })
        };

        function jipiaoTypesSelect() {//类型查询
            http.request("dictionary/page?page=1&limit=100&sort=&order=&dicCode=jipiao_types", 'get', {}, function (res) {
                if (res.code == 0) {
                    vue.jipiaoTypesList = res.data.list;
                }
            });
        }

        function jipiaoSelect() {//数据查询
            http.request('jipiao/gexingtuijian', 'get', {
                page: 1,
                limit: 8,
                shangxiaTypes: 1,
                jipiaoDelete: 1,
                jipiaoTypes: vue.jipiaoTypes,//类型
                order: "desc",//asc desc
            }, function (res) {
                vue.jipiaoList = res.data.list;
            })
        };

    });

    window.xznSlide = function () {
        // jQuery(".banner").slide({mainCell:".bd ul",autoPlay:true,interTime:5000});
        jQuery("#ifocus").slide({
            titCell: "#ifocus_btn li",
            mainCell: "#ifocus_piclist ul",
            effect: "leftLoop",
            delayTime: 200,
            autoPlay: true,
            triggerTime: 0
        });
        jQuery("#ifocus").slide({titCell: "#ifocus_btn li", mainCell: "#ifocus_tx ul", delayTime: 0, autoPlay: true});
        jQuery(".product_list").slide({
            mainCell: ".bd ul",
            autoPage: true,
            effect: "leftLoop",
            autoPlay: true,
            vis: 5,
            trigger: "click",
            interTime: 4000
        });
    };
</script>
<script src="../../xznstatic/js/index.js"></script>
</body>
</html>
